package com.basic.modules.ykf.controller;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.basic.common.exception.RRException;
import com.basic.common.utils.PageUtils;
import com.basic.common.utils.ParamsModel;
import com.basic.common.utils.R;
import com.basic.common.validator.ValidatorUtils;
import com.basic.modules.sys.controller.AbstractController;
import com.basic.modules.sys.entity.SysUserEntity;
import com.basic.modules.ykf.entity.YkfCustomerEntity;
import com.basic.modules.ykf.entity.YkfCustomerShopEntity;
import com.basic.modules.ykf.entity.YkfCustomerShopHistoryEntity;
import com.basic.modules.ykf.model.CustomerStatisticsReq;
import com.basic.modules.ykf.model.CustomerStatisticsResp;
import com.basic.modules.ykf.model.YkfQualityTestingModel;
import com.basic.modules.ykf.service.YkfCustomerService;
import com.basic.modules.ykf.service.YkfCustomerShopHistoryService;
import com.basic.modules.ykf.service.YkfCustomerShopService;
import com.basic.modules.ykf.service.YkfQualityTestingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;


/**
 * 客户管理
 *
 * @author maoheng
 * @email 15738859597@163.com
 * @date 2024-04-06 18:40:44
 */
@RestController
@RequestMapping("ykf/qualityTesting")
public class YkfQualityTestingController extends AbstractController {

    @Autowired
    private YkfQualityTestingService ykfQualityTestingService;

    /**
     * 列表-分页
     */
    @PostMapping("/receptionPage")
    public R receptionPage(@RequestBody ParamsModel<YkfQualityTestingModel> params) {
        PageUtils page = ykfQualityTestingService.receptionPage(params);
        return R.ok(page);
    }

}
